package com.bw.classfiy.mvvm.adapter;

import com.bw.classfiy.R;
import com.bw.mvvm.entity.ClassFiyEntity;
import com.bw.mvvm.network.load.LoadImage;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class ParticularsAdapter extends BaseQuickAdapter<ClassFiyEntity.DataBean, BaseViewHolder> {
    public ParticularsAdapter() {
        super(R.layout.item_particulars_rc);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ClassFiyEntity.DataBean classFiyEntity) {
        baseViewHolder.setText(R.id.particulaes_money,"￥1.00");
        baseViewHolder.setText(R.id.particulaes_title,classFiyEntity.getCategory_name());
        LoadImage.loadMatchImg(classFiyEntity.getCategory_icon(),baseViewHolder.getView(R.id.particulaes_ima));
    }
}
